/**
 * Created by raniys on 5/15/17.
 */

module.exports = {
    about: function (req, res, next) {
        res.send("Welcome to PatBalloon")
    },
    info: function (req, res, next) {
        var data = req.query;
        if (Object.keys(data).length) {
            data.status = "succeed"
        } else {
            data.status = "failed";
        }
        data.cookies = req.cookies;
        data.url = req.url;
        data.method = req.method;
        data.headers = req.headers;
        res.send(data)
    }
};